package com.lebang.model;

import com.lebang.entity.TbTaskAotian;
import com.lebangweb.common.TextUtil;

/**
 * @Author: hwq
 * @Date: 2019/7/9 15:15
 * @Version 1.0
 */
public class AotianModelRequest {
    private String order_id;
    private int cpl_id;
    private String cpl_name;
    private String money;
    private int scalar;
    private String description;
    private Long time;
    private String account;
    private int category;
    private String sign;

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public int getCpl_id() {
        return cpl_id;
    }

    public void setCpl_id(int cpl_id) {
        this.cpl_id = cpl_id;
    }

    public String getCpl_name() {
        return cpl_name;
    }

    public void setCpl_name(String cpl_name) {
        this.cpl_name = cpl_name;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }

    public int getScalar() {
        return scalar;
    }

    public void setScalar(int scalar) {
        this.scalar = scalar;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public int getCategory() {
        return category;
    }

    public void setCategory(int category) {
        this.category = category;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public TbTaskAotian init() {
        TbTaskAotian aotian=new TbTaskAotian();
        if(TextUtil.isEmpty(account,order_id,cpl_id,cpl_name,category,scalar,description,time)){
            return null;
        }
        aotian.setMemberId(account);
        aotian.setOrderId(order_id);
        aotian.setCplId(cpl_id);
        aotian.setCplName(cpl_name);
        aotian.setCategory(category);
        aotian.setScalar(scalar);
        aotian.setDescription(description);
        aotian.setTime(time.toString());
        return aotian;
    }
}
